// 移动端适配样式

// 表单布局
@media screen and (max-width: 768px) {
  .el-form {
    .el-form-item {
      margin-bottom: 10px;
      
      .el-form-item__label {
        float: none;
        text-align: left;
        padding: 0 0 5px;
      }
      
      .el-form-item__content {
        margin-left: 0 !important;
      }
    }
    
    .el-input, .el-select {
      width: 100%;
    }
  }
}

// 栅格布局
@media screen and (max-width: 768px) {
  .el-row {
    .el-col {
      width: 100% !important;
      margin-bottom: 10px;
    }
  }
}

// 表格布局
@media screen and (max-width: 768px) {
  .el-table {
    /deep/ .el-table__row {
      td {
        padding: 5px !important;
      }
    }
    
    /deep/ .el-table-column--selection {
      width: 40px !important;
    }
  }
}

// 对话框
@media screen and (max-width: 768px) {
  .el-dialog {
    width: 95% !important;
    margin: 10px auto !important;
    
    .el-dialog__body {
      padding: 10px !important;
    }
  }
}

// 日期选择器
@media screen and (max-width: 768px) {
  .el-date-picker {
    width: 100% !important;
  }
}

// 级联选择器
@media screen and (max-width: 768px) {
  .el-cascader {
    width: 100% !important;
  }
}

// 搜索区域
@media screen and (max-width: 768px) {
  .search-form {
    .el-form-item {
      width: 100%;
      margin-right: 0;
    }
  }
}

// Tab页
@media screen and (max-width: 768px) {
  .el-tabs__header {
    margin-bottom: 10px;
  }
  
  .el-tabs__item {
    padding: 0 10px !important;
  }
}

// 身份证信息表单
.card-info-form {
  @media screen and (max-width: 768px) {
    .el-row {
      .el-col {
        margin-bottom: 15px;
      }
    }
    
    .el-form-item {
      margin-bottom: 0;
    }
    
    .upload-button {
      width: 100%;
      
      img {
        width: 100%;
        height: auto;
        margin-top: 0;
      }
    }
  }
} 